Remove bogus code that tried to do what the X11 backend does in its
authorTor Lillqvist <tml@iki.fi>
Wed, 15 Sep 2004 18:37:45 +0000 (18:37 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 15 Sep 2004 18:37:45 +0000 (18:37 +0000)
2004-09-15  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
Remove bogus code that tried to do what the X11 backend does in
its version of this function. There are no "frame windows" (for
toplevel window decoration) on Windows. The desktop ("root")
window is not the parent of a toplevel window. (#152481)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkwindow-win32.c

index 1ea1481c5f43ee93d12b0b532e5ff186069e4506..3f0603ee0dd0ceb535fcad4d81cf3db08ab550b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-09-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
+       Remove bogus code that tried to do what the X11 backend does in
+       its version of this function. There are no "frame windows" (for
+       toplevel window decoration) on Windows. The desktop ("root")
+       window is not the parent of a toplevel window. (#152481)
+
 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
 
        * NEWS: Update.
index 1ea1481c5f43ee93d12b0b532e5ff186069e4506..3f0603ee0dd0ceb535fcad4d81cf3db08ab550b0 100644 (file)
@@ -1,3 +1,11 @@
+2004-09-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
+       Remove bogus code that tried to do what the X11 backend does in
+       its version of this function. There are no "frame windows" (for
+       toplevel window decoration) on Windows. The desktop ("root")
+       window is not the parent of a toplevel window. (#152481)
+
 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
 
        * NEWS: Update.
index 1ea1481c5f43ee93d12b0b532e5ff186069e4506..3f0603ee0dd0ceb535fcad4d81cf3db08ab550b0 100644 (file)
@@ -1,3 +1,11 @@
+2004-09-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
+       Remove bogus code that tried to do what the X11 backend does in
+       its version of this function. There are no "frame windows" (for
+       toplevel window decoration) on Windows. The desktop ("root")
+       window is not the parent of a toplevel window. (#152481)
+
 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
 
        * NEWS: Update.
index 1ea1481c5f43ee93d12b0b532e5ff186069e4506..3f0603ee0dd0ceb535fcad4d81cf3db08ab550b0 100644 (file)
@@ -1,3 +1,11 @@
+2004-09-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
+       Remove bogus code that tried to do what the X11 backend does in
+       its version of this function. There are no "frame windows" (for
+       toplevel window decoration) on Windows. The desktop ("root")
+       window is not the parent of a toplevel window. (#152481)
+
 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
 
        * NEWS: Update.
index 5fe64b7e9f728fb73089e79486f537297a1ad564..8d5826d8333c01f518e8df54146cc20acb60af48 100644 (file)
@@ -2021,14 +2021,6 @@ gdk_window_get_frame_extents (GdkWindow    *window,
     private = (GdkWindowObject*) private->parent;
 
   hwnd = GDK_WINDOW_HWND (window);
-
-  /* find the frame window */
-  while (HWND_DESKTOP != GetParent (hwnd))
-    {
-      hwnd = GetParent (hwnd);
-      g_return_if_fail (NULL != hwnd);
-    }
-
   API_CALL (GetWindowRect, (hwnd, &r));
 
   rect->x = r.left + _gdk_offset_x;